home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / PInterfaces / GXFonts.p < prev    next >
Encoding:
Text File  |  1995-07-06  |  6.5 KB  |  119 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        GXFonts.p
  3.  
  4.      Contains:    QuickDraw GX font routine interfaces.
  5.  
  6.      Version:    Technology:    Quickdraw GX 1.1
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT GXFonts;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __GXFONTS__}
  30. {$SETC __GXFONTS__ := 1}
  31.  
  32. {$I+}
  33. {$SETC GXFontsIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __CONDITIONALMACROS__}
  38. {$I ConditionalMacros.p}
  39. {$ENDC}
  40.  
  41. {$IFC UNDEFINED __GXMATH__}
  42. {$I GXMath.p}
  43. {$ENDC}
  44. {    Types.p                                                        }
  45. {    FixMath.p                                                    }
  46.  
  47. {$IFC UNDEFINED __GXTYPES__}
  48. {$I GXTypes.p}
  49. {$ENDC}
  50. {    MixedMode.p                                                    }
  51.  
  52. {$IFC UNDEFINED __SCALERTYPES__}
  53. {$I ScalerTypes.p}
  54. {$ENDC}
  55. {    SFNTTypes.p                                                    }
  56.  
  57. {$PUSH}
  58. {$ALIGN MAC68K}
  59. {$LibExport+}
  60. {$SETC fontRoutinesIncludes := 1}
  61.  
  62. FUNCTION GXNewFont(storage: gxFontStorageTag; reference: gxFontStorageReference; attributes: gxFontAttribute): gxFont; C;
  63. FUNCTION GXGetFont(fontID: gxFont; VAR reference: gxFontStorageReference; VAR attributes: gxFontAttribute): gxFontStorageTag; C;
  64. FUNCTION GXFindFont(storage: gxFontStorageTag; reference: gxFontStorageReference; VAR attributes: gxFontAttribute): gxFont; C;
  65. PROCEDURE GXSetFont(fontID: gxFont; storage: gxFontStorageTag; reference: gxFontStorageReference; attributes: gxFontAttribute); C;
  66. PROCEDURE GXDisposeFont(fontID: gxFont); C;
  67. PROCEDURE GXChangedFont(fontID: gxFont); C;
  68. FUNCTION GXGetFontFormat(fontID: gxFont): gxFontFormatTag; C;
  69. FUNCTION GXGetDefaultFont: gxFont; C;
  70. FUNCTION GXSetDefaultFont(fontID: gxFont): gxFont; C;
  71. FUNCTION GXFindFonts(familyID: gxFont; name: gxFontName; platform: gxFontPlatform; script: gxFontScript; language: gxFontLanguage; length: LONGINT; text: ByteParameter; index: LONGINT; count: LONGINT; fonts: gxFont): LONGINT; C;
  72. FUNCTION GXCountFontGlyphs(fontID: gxFont): LONGINT; C;
  73. FUNCTION GXCountFontTables(fontID: gxFont): LONGINT; C;
  74. FUNCTION GXGetFontTable(fontID: gxFont; index: LONGINT; tableData: UNIV Ptr; VAR tableTag: gxFontTableTag): LONGINT; C;
  75. FUNCTION GXFindFontTable(fontID: gxFont; tableTag: gxFontTableTag; tableData: UNIV Ptr; VAR index: LONGINT): LONGINT; C;
  76. FUNCTION GXGetFontTableParts(fontID: gxFont; index: LONGINT; offset: LONGINT; length: LONGINT; tableData: UNIV Ptr; VAR tableTag: gxFontTableTag): LONGINT; C;
  77. FUNCTION GXFindFontTableParts(fontID: gxFont; tableTag: gxFontTableTag; offset: LONGINT; length: LONGINT; tableData: UNIV Ptr; VAR index: LONGINT): LONGINT; C;
  78. FUNCTION GXSetFontTable(fontID: gxFont; index: LONGINT; tableTag: gxFontTableTag; length: LONGINT; tableData: UNIV Ptr): LONGINT; C;
  79. FUNCTION GXSetFontTableParts(fontID: gxFont; index: LONGINT; tableTag: gxFontTableTag; offset: LONGINT; oldLength: LONGINT; newLength: LONGINT; tableData: UNIV Ptr): LONGINT; C;
  80. FUNCTION GXDeleteFontTable(fontID: gxFont; index: LONGINT; tableTag: gxFontTableTag): LONGINT; C;
  81. FUNCTION GXCountFontNames(fontID: gxFont): LONGINT; C;
  82. FUNCTION GXGetFontName(fontID: gxFont; index: LONGINT; VAR name: gxFontName; VAR platform: gxFontPlatform; VAR script: gxFontScript; VAR language: gxFontLanguage; text: ByteParameter): LONGINT; C;
  83. FUNCTION GXFindFontName(fontID: gxFont; name: gxFontName; platform: gxFontPlatform; script: gxFontScript; language: gxFontLanguage; text: ByteParameter; VAR index: LONGINT): LONGINT; C;
  84. FUNCTION GXSetFontName(fontID: gxFont; name: gxFontName; platform: gxFontPlatform; script: gxFontScript; language: gxFontLanguage; length: LONGINT; text: ByteParameter): LONGINT; C;
  85. FUNCTION GXDeleteFontName(fontID: gxFont; index: LONGINT; name: gxFontName; platform: gxFontPlatform; script: gxFontScript; language: gxFontLanguage): LONGINT; C;
  86. FUNCTION GXNewFontNameID(fontID: gxFont): gxFontName; C;
  87. FUNCTION GXCountFontEncodings(fontID: gxFont): LONGINT; C;
  88. FUNCTION GXGetFontEncoding(fontID: gxFont; index: LONGINT; VAR script: gxFontScript; VAR language: gxFontLanguage): gxFontPlatform; C;
  89. FUNCTION GXFindFontEncoding(fontID: gxFont; platform: gxFontPlatform; script: gxFontScript; language: gxFontLanguage): LONGINT; C;
  90. FUNCTION GXApplyFontEncoding(fontID: gxFont; index: LONGINT; VAR length: LONGINT; text: ByteParameter; count: LONGINT; glyphs: INTEGER; was16Bit: ByteParameter): LONGINT; C;
  91. FUNCTION GXCountFontVariations(fontID: gxFont): LONGINT; C;
  92. FUNCTION GXFindFontVariation(fontID: gxFont; variationTag: gxFontVariationTag; VAR minValue: Fixed; VAR defaultValue: Fixed; VAR maxValue: Fixed; VAR name: gxFontName): LONGINT; C;
  93. FUNCTION GXGetFontVariation(fontID: gxFont; index: LONGINT; VAR minValue: Fixed; VAR defaultValue: Fixed; VAR maxValue: Fixed; VAR name: gxFontName): gxFontVariationTag; C;
  94. FUNCTION GXCountFontInstances(fontID: gxFont): LONGINT; C;
  95. FUNCTION GXGetFontInstance(fontID: gxFont; index: LONGINT; variation: gxFontVariation): gxFontName; C;
  96. FUNCTION GXSetFontInstance(fontID: gxFont; index: LONGINT; name: gxFontName; variation: gxFontVariation): LONGINT; C;
  97. FUNCTION GXDeleteFontInstance(fontID: gxFont; index: LONGINT; name: gxFontName): LONGINT; C;
  98. FUNCTION GXCountFontDescriptors(fontID: gxFont): LONGINT; C;
  99. FUNCTION GXGetFontDescriptor(fontID: gxFont; index: LONGINT; VAR descriptorValue: Fixed): gxFontDescriptorTag; C;
  100. FUNCTION GXFindFontDescriptor(fontID: gxFont; descriptorTag: gxFontDescriptorTag; VAR descriptorValue: Fixed): LONGINT; C;
  101. FUNCTION GXSetFontDescriptor(fontID: gxFont; index: LONGINT; descriptorTag: gxFontDescriptorTag; descriptorValue: Fixed): LONGINT; C;
  102. FUNCTION GXDeleteFontDescriptor(fontID: gxFont; index: LONGINT; descriptorTag: gxFontDescriptorTag): LONGINT; C;
  103. FUNCTION GXCountFontFeatures(fontID: gxFont): LONGINT; C;
  104. FUNCTION GXGetFontFeature(fontID: gxFont; index: LONGINT; VAR flags: gxFontFeatureFlag; VAR settingCount: LONGINT; settings: gxFontFeatureSetting; VAR feature: gxFontFeature): gxFontName; C;
  105. FUNCTION GXFindFontFeature(fontID: gxFont; feature: gxFontFeature; VAR flags: gxFontFeatureFlag; VAR settingCount: LONGINT; settings: gxFontFeatureSetting; VAR index: LONGINT): gxFontName; C;
  106. FUNCTION GXGetFontDefaultFeatures(fontID: gxFont; features: gxRunFeature): LONGINT; C;
  107. PROCEDURE GXFlattenFont(source: gxFont; VAR stream: scalerStream; VAR block: gxSpoolBlock); C;
  108.  
  109. {$ALIGN RESET}
  110. {$POP}
  111.  
  112. {$SETC UsingIncludes := GXFontsIncludes}
  113.  
  114. {$ENDC} {__GXFONTS__}
  115.  
  116. {$IFC NOT UsingIncludes}
  117.  END.
  118. {$ENDC}
  119.